package com.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;
/**
 * @Description  
 * @Author  zhaolong
 * @Date 2019-12-06 17:44:33 
 */
@Entity
@Table ( name ="template_component" , schema = "")
public class TemplateComponent  implements Serializable {

	private static final long serialVersionUID =  5540157928921940318L;

	@Id
   	@Column(name = "component_id" )
	private Long componentId;

	/**
	 * 组件名称
	 */
   	@Column(name = "component_name" )
	private String componentName;

	/**
	 * 组件地址
	 */
   	@Column(name = "component_ip" )
	private String componentIp;

	/**
	 * 组件作者
	 */
   	@Column(name = "component_author" )
	private String componentAuthor;

	/**
	 * 创作日期
	 */
   	@Column(name = "component_date" )
	private Date componentDate;

	public Long getComponentId() {
		return this.componentId;
	}

	public void setComponentId(Long componentId) {
		this.componentId = componentId;
	}

	public String getComponentName() {
		return this.componentName;
	}

	public void setComponentName(String componentName) {
		this.componentName = componentName;
	}

	public String getComponentIp() {
		return this.componentIp;
	}

	public void setComponentIp(String componentIp) {
		this.componentIp = componentIp;
	}

	public String getComponentAuthor() {
		return this.componentAuthor;
	}

	public void setComponentAuthor(String componentAuthor) {
		this.componentAuthor = componentAuthor;
	}

	public Date getComponentDate() {
		return this.componentDate;
	}

	public void setComponentDate(Date componentDate) {
		this.componentDate = componentDate;
	}

	@Override
	public String toString() {
		return "{" +
					"componentId='" + componentId + '\'' +
					"componentName='" + componentName + '\'' +
					"componentIp='" + componentIp + '\'' +
					"componentAuthor='" + componentAuthor + '\'' +
					"componentDate='" + componentDate + '\'' +
				'}';
	}

}
